package com.bole.feign.reception;

import com.bole.data.Result;
import com.bole.dto.user.LeaveMessageDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "BOLECAR-RECEPTION-SERVICE")
public interface LeaveMessageFeign {
    // 根据卖家id 查询留言
    @GetMapping("/message/{sellUserId}")
    Result getMessageByUserId(@PathVariable("sellUserId") Long sellUserId);
    // 保存留言
    @PostMapping("/message")
    Result saveLeavingMessage(@RequestBody LeaveMessageDto leavingDo);
}
